<form action="{:request()->url()}" autocomplete="off" class="layui-form layui-card layui-form-pane" data-auto="true"
    method="post">
    <div class="layui-card-body padding-10">

        <div class="layui-row layui-col-space15">
            <div class="layui-col-md6">
                <div class="layui-form-item relative block">
                    <span class="color-green font-w7 label-required-prev">控制器名</span>
                    <span class="color-desc margin-left-5">必须是英文,小写,创建后不能修改</span>
                    <input class="layui-input " name="name" placeholder="" {if isset($vo.name)}disabled{/if}
                        value='{$vo.name|default=""}'>
                </div>
            </div>
            <div class="layui-col-md6">
                <div class="layui-form-item relative block">
                    <span class="color-green font-w7 label-required-prev">控制器名称</span>
                    <span class="color-desc margin-left-5">必须是中文</span>
                    <input class="layui-input" name="title" placeholder="" value='{$vo.title|default=""}'>
                </div>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <label class="layui-form-label">编辑</label>
                    <input type="radio" name="edit" value="0" title="禁用" {if isset($vo.edit) && $vo.edit==0 }
                        checked{/if}>
                    <input type="radio" name="edit" value="1" title="激活" {if isset($vo.edit) && $vo.edit==1 ||
                        !isset($vo.edit)} checked{/if}>
                </div>
                <div class="layui-input-inline">
                    <label class="layui-form-label">删除</label>
                    <input type="radio" name="del" value="0" title="禁用" {if isset($vo.del) && $vo.del==0 } checked{/if}>
                    <input type="radio" name="del" value="1" title="激活" {if isset($vo.del) && $vo.del==1 ||
                        !isset($vo.del)} checked{/if}>
                </div>
            </div>
        </div>



    </div>

    <div class="hr-line-dashed"></div>
    <input name='app' type='hidden' value='{:input("app")}'>
    {notempty name='vo.id'}<input name='id' type='hidden' value='{$vo.id}'>{/notempty}

    <div class="layui-form-item text-center">
        <button class="layui-btn" type="submit">保存数据</button>
        <button class="layui-btn layui-btn-danger" data-close type='button'>取消编辑</button>
    </div>
    </div>
</form>


{block name='script'}
<script>
    // 脚本部分，默认加载了所有插件
    $(function () {
        // layui 表单组件初始化
        layui.form.render();
        // layui 组件动作初始化
        layui.element.render();

    });
</script>
{/block}